<div id="content">

    <div id="content-header">

        <div id="breadcrumb"><a href="<?php echo site_url('Login/login') ?>" title="Go to Home" class="tip-bottom"><i
                class="icon-home"></i> 主页</a> <a href="#" class="current">权限管理</a></div>

        <h1>页面权限列表</h1>

    </div>

    <div class="container-fluid">

        <hr>

        <div class="row-fluid">

            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"><i class="icon-th"></i></span>
                        <h5>Data table</h5>
                        <span style="position:absolute;right:0;">
			</span>
                    </div>

                    <div class="widget-content nopadding">

                        <table class="table table-bordered data-table">

                            <thead>

                            <tr>
                                <th>编号</th>
                                <th>功能模块</th>
                                <th>生效级别</th>
                                <th>特殊用户ID</th>
                                <th>是否启用</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $rows=$data[0];
                            foreach($rows as $value):
                            ?>
                            <tr class="gradeX">
                                <td><?php  echo $value['id']?></td>
                                <td><?php  echo $value['pagename']?></td>
                                <td><?php  echo $value['ulevel']?></td>
                                <td><?php  echo $value['uid']?></td>
                                <td class="center"><?php  echo $value['invalid']?></td>
                                <td>
				  <span>

                      <?php
                       $id=intval($value['id']);
                       $name=($value['pagename']);
                       $url=site_url("auth/editlevelpage/$id/$name");
?>
                      <button class="btn btn-warning btn-mini"
                              onClick="window.open('<?php echo $url;?>','_self')">修改
                    </button>
								<a href="#myAlert" data-toggle="modal" class="btn btn-danger btn-mini"
                                   onclick="">删除</a>
				  </span>
                                </td>

                            </tr>
                            <?php    endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>